package com.aracky.system.mapper;

import com.aracky.system.model.entity.SysMenu;
import com.aracky.system.model.request.SysMenuRequest;
import com.aracky.system.model.vo.SysMenuVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 菜单权限表 Mapper 接口
 * </p>
 *
 * @author zzp
 * @since 2022-07-14 11:22:57
 */
@Mapper
public interface SysMenuMapper extends BaseMapper<SysMenu> {
    /**
     * 查询分页菜单
     * @param toPage
     * @param sysMenuRequest
     * @return
     */
    IPage<SysMenuVO> findMenu(Page toPage, @Param("menu") SysMenuRequest sysMenuRequest);

    /**
     * 查询所有菜单信息
     * @param sysMenuRequest
     * @return
     */
    List<SysMenuVO> findMenu(@Param("menu") SysMenuRequest sysMenuRequest);
}
